<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

// Route::resource('users', 'index/index');
Route::get('home','index/Index/index');
Route::get('del/:id$','index/Index/del');
Route::post('add','index/Index/add');
Route::get('cha/:id$','index/Index/cha');
Route::post('edit/[:id]$','index/Index/edit');


Route::get('admin$','admin/Index/index');
Route::resource('power','admin/Power');
Route::post('qwe/:id','admin/Power/qwe');
Route::resource('actor','admin/Actor');


// return [
//     // '__pattern__' => [
//     //     'name' => '\w+',
//     // ],
//     // '[hello]'     => [
//     //     ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//     //     ':name' => ['index/hello', ['method' => 'post']],
//     // ],

// ];

